//
//  FriendViewController.m
//  GoodsHoster
//
//  Created by apple on 16/2/16.
//  Copyright © 2016年 梧桐树. All rights reserved.
//

#import "FriendViewController.h"

#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
#define RGBCOLOR(r, g, b)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]

@interface FriendViewController ()

@end

@implementation FriendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"扫码下载";
    UIImage *leftIamge = [UIImage imageNamed:@"ico_arrowleft.png"];
    UIImage *image = [leftIamge imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:image style:UIBarButtonItemStylePlain target:self action:@selector(back)];
    
    UIScrollView *scroll=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT-64)];
    [self.view addSubview:scroll];
    UILabel *lab=[[UILabel alloc]initWithFrame:CGRectMake(0, 16,WIDTH , 15)];
    lab.textAlignment=NSTextAlignmentCenter;
    lab.text=@"快来扫码，给你不一样的体验";
    [scroll addSubview:lab];
    UIImageView *er=[[UIImageView alloc]initWithFrame:CGRectMake((WIDTH-260)/2, 60, 260, 260)];
    er.backgroundColor=[UIColor whiteColor];
    [scroll addSubview:er];
    UILabel *lab2=[[UILabel alloc]initWithFrame:CGRectMake(25, 310, WIDTH-50, 40)];
    lab2.font=[UIFont systemFontOfSize:15];
    lab2.text=@"";
    lab2.numberOfLines=2;
    [scroll addSubview:lab2];
    scroll.contentSize=CGSizeMake(WIDTH, 390);
    scroll.backgroundColor = RGBCOLOR(245,245,245);
    self.view.backgroundColor = RGBCOLOR(245,245,245);
//   UIButton* btn=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
//    [btn addTarget:self action:@selector(right) forControlEvents:UIControlEventTouchUpInside];
//    [btn setBackgroundColor:[UIColor orangeColor]];
//    [btn.layer setCornerRadius:3.0];
////    [btn.layer setBorderWidth:0.8];
////    btn.layer.borderColor=[UIColor orangeColor].CGColor;
//    [btn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
//   // [btn setTitle:@"取消" forState:UIControlStateNormal];
//   // btn.titleLabel.font=[UIFont systemFontOfSize:15];
//   // [btn setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
//    UIBarButtonItem*rightItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
//    [self.navigationItem setRightBarButtonItem:rightItem];
    

    // Do any additional setup afteloading the view from its nib.
}
-(void)right{

    
    
    
    
    
  }
-(void)back{

    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
